package initialize

import (
	"firstdemo_go/router"
	"github.com/gin-gonic/gin"
)

func Routers() *gin.Engine {
	var Router = gin.Default()
	PublicGroup := Router.Group("")
	{
		router.BaseRouter(PublicGroup) // 注册基础功能路由 不做鉴权
		router.DataRouter(PublicGroup) //
		router.MysqlRouter(PublicGroup)
	}
	return Router
}
